#ifndef MATLAB_MEX_FILE

#ifndef _ICMU_H_
#define _ICMU_H_

/* Includes -------------------------------------------------------------*/
#include "DSP28x_Project.h"


/* Typedefs -------------------------------------------------------------*/
typedef union
{
	Uint32	all;
	struct
	{
		Uint32	Word_0:16;
		Uint32	Word_1:16;
	} words;
	struct
	{
		Uint32	StopBit:1;
		Uint32	Error:1;
		Uint32	Zeros:1;
		Uint32	Position:20;
		Uint32	SyncBit:1;
		Uint32	Reserved:8;
	} bits;
} SSI_RAWDATA;


/* Export functions -----------------------------------------------------*/
void Mcbspa_Init(void);
Uint32 Icmu_GetPosition(void);


#endif /* _ICMU_H_ */
#endif /* MATLAB_MEX_FILE */
